package cn.topcodes.tcsf.wechat.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 图片素材表单
 * @author xw
 * @date 2017-12-22 15:10:21
 */
@Data
public class WechatPictureForm implements Idable {

    private Long id;

    @NotNull(message = "图片名称不能为空")
    @Length(min = 0, max = 100, message = "图片名称长度为0~100个字符")
    private String name;

    private String url;
}
